<?php

$dom	= new DOMDocument();
$root	= $dom->createElement('root');
$stam	= $dom->createElement('stam');
$stam->nodeValue = 'content';

$root->appendChild($stam);
$dom->appendChild($root);



echo $dom->saveXML();